﻿namespace ACCOUNTING
{
    using ACCOUNTING.LVY.Business;
    using ACCOUNTING.My.Resources;
    using C1.Win.C1FlexGrid;
    using C1.Win.C1FlexGrid.Util.BaseControls;
    using Microsoft.VisualBasic;
    using Microsoft.VisualBasic.CompilerServices;
    using System;
    using System.Collections.Generic;
    using System.ComponentModel;
    using System.Data;
    using System.Diagnostics;
    using System.Drawing;
    using System.Runtime.CompilerServices;
    using System.Windows.Forms;

    [DesignerGenerated]
    public class Frm_KhauHaoTaiSan : Form
    {
        private static List<WeakReference> __ENCList = new List<WeakReference>();
        [AccessedThroughProperty("CboLoaiTaiSan")]
        private ComboBox _CboLoaiTaiSan;
        [AccessedThroughProperty("CmdHuyKhauHao")]
        private Button _CmdHuyKhauHao;
        [AccessedThroughProperty("CmdThoat")]
        private Button _CmdThoat;
        [AccessedThroughProperty("CmdTinhKhauHao")]
        private Button _CmdTinhKhauHao;
        [AccessedThroughProperty("CmdXem")]
        private Button _CmdXem;
        [AccessedThroughProperty("Label1")]
        private Label _Label1;
        [AccessedThroughProperty("Label11")]
        private Label _Label11;
        [AccessedThroughProperty("Label2")]
        private Label _Label2;
        [AccessedThroughProperty("Panel1")]
        private Panel _Panel1;
        [AccessedThroughProperty("Panel2")]
        private Panel _Panel2;
        [AccessedThroughProperty("updNam")]
        private NumericUpDown _updNam;
        [AccessedThroughProperty("updThang")]
        private NumericUpDown _updThang;
        [AccessedThroughProperty("VSlist")]
        private C1.Win.C1FlexGrid.C1FlexGrid _VSlist;
        private IContainer components;
        private bool isLoaded;
        private bool mAllowAdd;
        private bool mAllowDel;
        private bool mAllowEdit;
        private bool mAllowView;
        private clsTaiSanCoDinh objTS;
        private DataView pdtview;

        public Frm_KhauHaoTaiSan()
        {
            base.Load += new EventHandler(this.Frm_KhauHaoTaiSan_Load);
            List<WeakReference> list = __ENCList;
            lock (list)
            {
                __ENCList.Add(new WeakReference(this));
            }
            this.objTS = new clsTaiSanCoDinh();
            this.isLoaded = false;
            this.InitializeComponent();
        }

        private void CmdHuyKhauHao_Click(object sender, EventArgs e)
        {
            string str2 = "";
            string strKhoaChungTu = "";
            str2 = this.updNam.Value.ToString() + LVYModule.sRight("00" + this.updThang.Value.ToString(), 2);
            if (LVYModule.CheckDateLock(str2.Trim() + LVYModule.sRight("00" + Conversions.ToString(DateTime.DaysInMonth(Conversions.ToInteger(LVYModule.sLeft(str2, 4)), Conversions.ToInteger(LVYModule.sRight(str2, 2)))), 2)))
            {
                string strNamThang = LVYModule.MonthAdd(Convert.ToInt32(this.updThang.Value), Convert.ToInt32(this.updNam.Value), 1);
                if (this.objTS.DaTinhKhauHao(str2))
                {
                    if (this.objTS.DaTinhKhauHao(strNamThang))
                    {
                        LVYModule.ShowWarning(modGeneral.Tranlated("Bạn kh\x00f4ng thể hủy khấu hao th\x00e1ng n\x00e0y được, bạn đ\x00e3 t\x00ednh khấu hao th\x00e1ng", "") + " " + LVYModule.sRight(strNamThang, 2) + "/" + LVYModule.sLeft(strNamThang, 4));
                    }
                    else if (LVYModule.ConfirmDelete(modGeneral.Tranlated("Bạn thật sự muốn hủy khấu hao th\x00e1ng n\x00e0y!", "")))
                    {
                        strKhoaChungTu = modGeneral.H_PREFIX.Trim() + "KHTSCD-" + str2;
                        if (this.objTS.HuyKhauHao(str2, strKhoaChungTu, modGeneral.H_CLIENT))
                        {
                            this.LoadData();
                        }
                    }
                }
            }
        }

        private void CmdThoat_Click(object sender, EventArgs e)
        {
            this.Dispose();
        }

        private void CmdTinhKhauHao_Click(object sender, EventArgs e)
        {
            string str3 = this.updNam.Value.ToString() + LVYModule.sRight("00" + this.updThang.Value.ToString(), 2);
            if (LVYModule.CheckDateLock(str3.Trim() + LVYModule.sRight("00" + Conversions.ToString(DateTime.DaysInMonth(Conversions.ToInteger(LVYModule.sLeft(str3, 4)), Conversions.ToInteger(LVYModule.sRight(str3, 2)))), 2)))
            {
                string strKhoaChungTu = modGeneral.H_PREFIX.Trim() + "KHTSCD-" + str3;
                string strSoChungTu = "KH-" + str3;
                string strNgayChungTu = str3 + DateTime.DaysInMonth(Convert.ToInt32(this.updNam.Value), Convert.ToInt32(this.updThang.Value)).ToString();
                string strDienGiai = modGeneral.Tranlated("Tr\x00edch khấu hao t\x00e0i sản cố định th\x00e1ng", "") + ": " + LVYModule.sRight(str3, 2) + "/" + LVYModule.sLeft(str3, 4);
                if (this.objTS.TinhKhauHao(str3, strKhoaChungTu, strSoChungTu, strNgayChungTu, strDienGiai, modGeneral.H_CURRENCY, modGeneral.H_CLIENT))
                {
                    this.LoadData();
                }
            }
        }

        private void CmdXem_Click(object sender, EventArgs e)
        {
            this.LoadData();
        }

        [DebuggerNonUserCode]
        protected override void Dispose(bool disposing)
        {
            if (disposing && (this.components != null))
            {
                this.components.Dispose();
            }
            base.Dispose(disposing);
        }

        private void Frm_KhauHaoTaiSan_Load(object sender, EventArgs e)
        {
            this.Cursor = Cursors.WaitCursor;
            LVYModule.GetUserRight(ref this.mAllowView, ref this.mAllowDel, ref this.mAllowEdit, ref this.mAllowAdd, Conversions.ToString(this.Tag), modGeneral.H_USERNAME);
            if (!this.mAllowView)
            {
                LVYModule.ShowWarning(modGeneral.Tranlated("Bạn kh\x00f4ng c\x00f3 quyền xem, li\x00ean hệ với người quản trị để biết th\x00eam chi tiết.", ""));
                this.Dispose();
            }
            else
            {
                this.CmdTinhKhauHao.Enabled = this.mAllowAdd;
                this.CmdHuyKhauHao.Enabled = this.mAllowDel;
                this.updNam.Value = new decimal(DateAndTime.Year(DateAndTime.Today));
                this.updThang.Value = new decimal(DateAndTime.Month(DateAndTime.Today));
                this.isLoaded = true;
                this.LoadData();
                this.Cursor = Cursors.Default;
            }
        }

        [DebuggerStepThrough]
        private void InitializeComponent()
        {
            ComponentResourceManager manager = new ComponentResourceManager(typeof(Frm_KhauHaoTaiSan));
            this.Panel1 = new Panel();
            this.CmdHuyKhauHao = new Button();
            this.CmdThoat = new Button();
            this.CmdTinhKhauHao = new Button();
            this.CmdXem = new Button();
            this.CboLoaiTaiSan = new ComboBox();
            this.Label11 = new Label();
            this.Label2 = new Label();
            this.updNam = new NumericUpDown();
            this.Label1 = new Label();
            this.updThang = new NumericUpDown();
            this.VSlist = new C1.Win.C1FlexGrid.C1FlexGrid();
            this.Panel2 = new Panel();
            this.Panel1.SuspendLayout();
            this.updNam.BeginInit();
            this.updThang.BeginInit();
            this.VSlist.BeginInit();
            this.SuspendLayout();
            this.Panel1.BackgroundImage = ACCOUNTING.My.Resources.Resources.bgleft;
            this.Panel1.Controls.Add(this.CmdHuyKhauHao);
            this.Panel1.Controls.Add(this.CmdThoat);
            this.Panel1.Controls.Add(this.CmdTinhKhauHao);
            this.Panel1.Controls.Add(this.CmdXem);
            this.Panel1.Controls.Add(this.CboLoaiTaiSan);
            this.Panel1.Controls.Add(this.Label11);
            this.Panel1.Controls.Add(this.Label2);
            this.Panel1.Controls.Add(this.updNam);
            this.Panel1.Controls.Add(this.Label1);
            this.Panel1.Controls.Add(this.updThang);
            this.Panel1.Dock = DockStyle.Top;
            Point point = new Point(0, 0);
            this.Panel1.Location = point;
            this.Panel1.Name = "Panel1";
            Size size = new Size(0x37e, 0x2b);
            this.Panel1.Size = size;
            this.Panel1.TabIndex = 0;
            this.CmdHuyKhauHao.BackgroundImageLayout = ImageLayout.None;
            this.CmdHuyKhauHao.Image = ACCOUNTING.My.Resources.Resources.Remove;
            this.CmdHuyKhauHao.ImageAlign = ContentAlignment.MiddleLeft;
            point = new Point(0x2b9, 15);
            this.CmdHuyKhauHao.Location = point;
            this.CmdHuyKhauHao.Name = "CmdHuyKhauHao";
            size = new Size(0x65, 0x18);
            this.CmdHuyKhauHao.Size = size;
            this.CmdHuyKhauHao.TabIndex = 0x4f;
            this.CmdHuyKhauHao.Text = "&Hủy khấu hao";
            this.CmdHuyKhauHao.TextAlign = ContentAlignment.MiddleRight;
            this.CmdHuyKhauHao.UseVisualStyleBackColor = true;
            this.CmdThoat.BackgroundImageLayout = ImageLayout.None;
            this.CmdThoat.Image = ACCOUNTING.My.Resources.Resources.Closed;
            this.CmdThoat.ImageAlign = ContentAlignment.MiddleLeft;
            point = new Point(800, 15);
            this.CmdThoat.Location = point;
            this.CmdThoat.Name = "CmdThoat";
            size = new Size(0x58, 0x18);
            this.CmdThoat.Size = size;
            this.CmdThoat.TabIndex = 0x4e;
            this.CmdThoat.Text = "Th&o\x00e1t";
            this.CmdThoat.UseVisualStyleBackColor = true;
            this.CmdTinhKhauHao.BackgroundImageLayout = ImageLayout.None;
            this.CmdTinhKhauHao.Image = ACCOUNTING.My.Resources.Resources.Adds;
            this.CmdTinhKhauHao.ImageAlign = ContentAlignment.MiddleLeft;
            point = new Point(0x251, 15);
            this.CmdTinhKhauHao.Location = point;
            this.CmdTinhKhauHao.Name = "CmdTinhKhauHao";
            size = new Size(0x65, 0x18);
            this.CmdTinhKhauHao.Size = size;
            this.CmdTinhKhauHao.TabIndex = 0x4d;
            this.CmdTinhKhauHao.Text = "&T\x00ednh khấu hao";
            this.CmdTinhKhauHao.TextAlign = ContentAlignment.MiddleRight;
            this.CmdTinhKhauHao.UseVisualStyleBackColor = true;
            this.CmdXem.BackgroundImage = ACCOUNTING.My.Resources.Resources.report;
            this.CmdXem.BackgroundImageLayout = ImageLayout.None;
            point = new Point(500, 15);
            this.CmdXem.Location = point;
            this.CmdXem.Name = "CmdXem";
            size = new Size(90, 0x18);
            this.CmdXem.Size = size;
            this.CmdXem.TabIndex = 0x4c;
            this.CmdXem.Text = "&Xem";
            this.CmdXem.UseVisualStyleBackColor = true;
            this.CboLoaiTaiSan.DropDownStyle = ComboBoxStyle.DropDownList;
            this.CboLoaiTaiSan.FormattingEnabled = true;
            point = new Point(0x7d, 0x13);
            this.CboLoaiTaiSan.Location = point;
            this.CboLoaiTaiSan.Name = "CboLoaiTaiSan";
            size = new Size(0x100, 0x15);
            this.CboLoaiTaiSan.Size = size;
            this.CboLoaiTaiSan.TabIndex = 60;
            this.Label11.AutoSize = true;
            this.Label11.BackColor = Color.Transparent;
            this.Label11.ForeColor = Color.Black;
            point = new Point(0x7c, 3);
            this.Label11.Location = point;
            this.Label11.Name = "Label11";
            size = new Size(0x3d, 13);
            this.Label11.Size = size;
            this.Label11.TabIndex = 0x3d;
            this.Label11.Text = "Loại t\x00e0i sản";
            this.Label11.TextAlign = ContentAlignment.TopRight;
            this.Label2.AutoSize = true;
            this.Label2.BackColor = Color.Transparent;
            this.Label2.ForeColor = Color.Black;
            point = new Point(0x38, 3);
            this.Label2.Location = point;
            this.Label2.Name = "Label2";
            size = new Size(0x1d, 13);
            this.Label2.Size = size;
            this.Label2.TabIndex = 15;
            this.Label2.Text = "Năm";
            point = new Point(0x3b, 0x13);
            this.updNam.Location = point;
            decimal num = new decimal(new int[] { 0x9c4, 0, 0, 0 });
            this.updNam.Maximum = num;
            num = new decimal(new int[] { 0x7d0, 0, 0, 0 });
            this.updNam.Minimum = num;
            this.updNam.Name = "updNam";
            size = new Size(0x3a, 20);
            this.updNam.Size = size;
            this.updNam.TabIndex = 14;
            num = new decimal(new int[] { 0x7d0, 0, 0, 0 });
            this.updNam.Value = num;
            this.Label1.AutoSize = true;
            this.Label1.BackColor = Color.Transparent;
            this.Label1.ForeColor = Color.Black;
            point = new Point(3, 3);
            this.Label1.Location = point;
            this.Label1.Name = "Label1";
            size = new Size(0x26, 13);
            this.Label1.Size = size;
            this.Label1.TabIndex = 13;
            this.Label1.Text = "Th\x00e1ng";
            point = new Point(8, 0x13);
            this.updThang.Location = point;
            num = new decimal(new int[] { 12, 0, 0, 0 });
            this.updThang.Maximum = num;
            num = new decimal(new int[] { 1, 0, 0, 0 });
            this.updThang.Minimum = num;
            this.updThang.Name = "updThang";
            size = new Size(0x2d, 20);
            this.updThang.Size = size;
            this.updThang.TabIndex = 12;
            num = new decimal(new int[] { 1, 0, 0, 0 });
            this.updThang.Value = num;
            this.VSlist.BorderStyle = C1.Win.C1FlexGrid.Util.BaseControls.BorderStyleEnum.XpThemes;
            this.VSlist.ColumnInfo = manager.GetString("VSlist.ColumnInfo");
            this.VSlist.Dock = DockStyle.Fill;
            this.VSlist.ExtendLastCol = true;
            this.VSlist.KeyActionEnter = KeyActionEnum.MoveAcross;
            point = new Point(0, 0x2b);
            this.VSlist.Location = point;
            Padding padding = new Padding(0);
            this.VSlist.Margin = padding;
            this.VSlist.Name = "VSlist";
            this.VSlist.Rows.Count = 1;
            this.VSlist.Rows.DefaultSize = 0x11;
            size = new Size(0x37e, 0x1f0);
            this.VSlist.Size = size;
            this.VSlist.StyleInfo = manager.GetString("VSlist.StyleInfo");
            this.VSlist.TabIndex = 0x21;
            this.VSlist.VisualStyle = VisualStyle.Office2007Blue;
            this.Panel2.BackgroundImage = ACCOUNTING.My.Resources.Resources.bgleft;
            this.Panel2.Dock = DockStyle.Bottom;
            point = new Point(0, 0x21b);
            this.Panel2.Location = point;
            this.Panel2.Name = "Panel2";
            size = new Size(0x37e, 0x1d);
            this.Panel2.Size = size;
            this.Panel2.TabIndex = 0x22;
            SizeF ef = new SizeF(6f, 13f);
            this.AutoScaleDimensions = ef;
            this.AutoScaleMode = AutoScaleMode.Font;
            size = new Size(0x37e, 0x238);
            this.ClientSize = size;
            this.ControlBox = false;
            this.Controls.Add(this.VSlist);
            this.Controls.Add(this.Panel2);
            this.Controls.Add(this.Panel1);
            this.FormBorderStyle = FormBorderStyle.FixedDialog;
            this.Name = "Frm_KhauHaoTaiSan";
            this.ShowIcon = false;
            this.StartPosition = FormStartPosition.CenterScreen;
            this.Tag = "NV-0014";
            this.Text = "TINH KHAU HAO TAI SAN";
            this.Panel1.ResumeLayout(false);
            this.Panel1.PerformLayout();
            this.updNam.EndInit();
            this.updThang.EndInit();
            this.VSlist.EndInit();
            this.ResumeLayout(false);
        }

        public void LoadData()
        {
            if (this.isLoaded)
            {
                string strNamThang = "";
                strNamThang = this.updNam.Value.ToString() + LVYModule.sRight("00" + this.updThang.Value.ToString(), 2);
                if (this.objTS.DaTinhKhauHao(strNamThang))
                {
                    this.CmdTinhKhauHao.Enabled = false;
                    this.CmdHuyKhauHao.Enabled = true;
                }
                else
                {
                    this.CmdTinhKhauHao.Enabled = true;
                    this.CmdHuyKhauHao.Enabled = false;
                }
                this.pdtview = new DataView(this.objTS.GetListKhauHaoThang(strNamThang, modGeneral.H_CLIENT));
                this.VSlist.DataSource = this.pdtview;
                C1.Win.C1FlexGrid.C1FlexGrid vSlist = this.VSlist;
                vSlist.Cols[0].Visible = false;
                vSlist.Cols[1].Width = 90;
                vSlist.Cols[2].Width = 240;
                vSlist.Cols[3].Width = 90;
                vSlist.Cols[4].Width = 90;
                vSlist.Cols[5].Width = 90;
                vSlist.Cols[6].Width = 90;
                vSlist.Cols[7].Width = 70;
                vSlist.Cols[8].Width = 70;
                vSlist.Cols[9].Width = 100;
                vSlist.Cols[10].Width = 100;
                vSlist.Cols[11].Width = 100;
                vSlist[0, 1] = modGeneral.Tranlated("M\x00e3 t\x00e0i sản", "");
                vSlist[0, 2] = modGeneral.Tranlated("T\x00ean t\x00e0i sản", "");
                vSlist[0, 3] = modGeneral.Tranlated("Nguy\x00ean gi\x00e1", "");
                vSlist[0, 4] = modGeneral.Tranlated("Khấu hao lũy kế", "");
                vSlist[0, 5] = modGeneral.Tranlated("Khấu hao kỳ n\x00e0y", "");
                vSlist[0, 6] = modGeneral.Tranlated("Trị gi\x00e1 c\x00f2n lại", "");
                vSlist[0, 7] = modGeneral.Tranlated("T\x00e0i khoản nợ", "");
                vSlist[0, 8] = modGeneral.Tranlated("T\x00e0i khoản c\x00f3", "");
                vSlist[0, 9] = modGeneral.Tranlated("Bộ phận", "");
                vSlist[0, 10] = modGeneral.Tranlated("Sản phẩm", "");
                vSlist[0, 11] = modGeneral.Tranlated("Hợp đồng", "");
                vSlist.Cols[3].DataType = System.Type.GetType("System.Decimal");
                vSlist.Cols[3].Format = modGeneral.H_FORMATNUMBER;
                vSlist.Cols[4].DataType = System.Type.GetType("System.Decimal");
                vSlist.Cols[4].Format = modGeneral.H_FORMATNUMBER;
                vSlist.Cols[5].DataType = System.Type.GetType("System.Decimal");
                vSlist.Cols[5].Format = modGeneral.H_FORMATNUMBER;
                vSlist.Cols[6].DataType = System.Type.GetType("System.Decimal");
                vSlist.Cols[6].Format = modGeneral.H_FORMATNUMBER;
                vSlist = null;
            }
        }

        private void updNam_ValueChanged(object sender, EventArgs e)
        {
            this.LoadData();
        }

        private void updThang_ValueChanged(object sender, EventArgs e)
        {
            this.LoadData();
        }

        internal virtual ComboBox CboLoaiTaiSan
        {
            [DebuggerNonUserCode]
            get
            {
                return this._CboLoaiTaiSan;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._CboLoaiTaiSan = value;
            }
        }

        internal virtual Button CmdHuyKhauHao
        {
            [DebuggerNonUserCode]
            get
            {
                return this._CmdHuyKhauHao;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                EventHandler handler = new EventHandler(this.CmdHuyKhauHao_Click);
                if (this._CmdHuyKhauHao != null)
                {
                    this._CmdHuyKhauHao.Click -= handler;
                }
                this._CmdHuyKhauHao = value;
                if (this._CmdHuyKhauHao != null)
                {
                    this._CmdHuyKhauHao.Click += handler;
                }
            }
        }

        internal virtual Button CmdThoat
        {
            [DebuggerNonUserCode]
            get
            {
                return this._CmdThoat;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                EventHandler handler = new EventHandler(this.CmdThoat_Click);
                if (this._CmdThoat != null)
                {
                    this._CmdThoat.Click -= handler;
                }
                this._CmdThoat = value;
                if (this._CmdThoat != null)
                {
                    this._CmdThoat.Click += handler;
                }
            }
        }

        internal virtual Button CmdTinhKhauHao
        {
            [DebuggerNonUserCode]
            get
            {
                return this._CmdTinhKhauHao;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                EventHandler handler = new EventHandler(this.CmdTinhKhauHao_Click);
                if (this._CmdTinhKhauHao != null)
                {
                    this._CmdTinhKhauHao.Click -= handler;
                }
                this._CmdTinhKhauHao = value;
                if (this._CmdTinhKhauHao != null)
                {
                    this._CmdTinhKhauHao.Click += handler;
                }
            }
        }

        internal virtual Button CmdXem
        {
            [DebuggerNonUserCode]
            get
            {
                return this._CmdXem;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                EventHandler handler = new EventHandler(this.CmdXem_Click);
                if (this._CmdXem != null)
                {
                    this._CmdXem.Click -= handler;
                }
                this._CmdXem = value;
                if (this._CmdXem != null)
                {
                    this._CmdXem.Click += handler;
                }
            }
        }

        internal virtual Label Label1
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label1;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label1 = value;
            }
        }

        internal virtual Label Label11
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label11;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label11 = value;
            }
        }

        internal virtual Label Label2
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label2;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label2 = value;
            }
        }

        internal virtual Panel Panel1
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Panel1;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Panel1 = value;
            }
        }

        internal virtual Panel Panel2
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Panel2;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Panel2 = value;
            }
        }

        internal virtual NumericUpDown updNam
        {
            [DebuggerNonUserCode]
            get
            {
                return this._updNam;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                EventHandler handler = new EventHandler(this.updNam_ValueChanged);
                if (this._updNam != null)
                {
                    this._updNam.ValueChanged -= handler;
                }
                this._updNam = value;
                if (this._updNam != null)
                {
                    this._updNam.ValueChanged += handler;
                }
            }
        }

        internal virtual NumericUpDown updThang
        {
            [DebuggerNonUserCode]
            get
            {
                return this._updThang;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                EventHandler handler = new EventHandler(this.updThang_ValueChanged);
                if (this._updThang != null)
                {
                    this._updThang.ValueChanged -= handler;
                }
                this._updThang = value;
                if (this._updThang != null)
                {
                    this._updThang.ValueChanged += handler;
                }
            }
        }

        internal virtual C1.Win.C1FlexGrid.C1FlexGrid VSlist
        {
            [DebuggerNonUserCode]
            get
            {
                return this._VSlist;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._VSlist = value;
            }
        }
    }
}

